import request from './request'

/**
 * 获取学习记录列表
 */
export const getStudyRecordList = (params) => {
  return request.get('/admin/study-records', { params })
}

/**
 * 根据ID获取学习记录详情
 */
export const getStudyRecordById = (id) => {
  return request.get(`/admin/study-records/${id}`)
}

/**
 * 创建学习记录
 */
export const createStudyRecord = (data) => {
  return request.post('/admin/study-records', data)
}

/**
 * 删除学习记录
 */
export const deleteStudyRecord = (id) => {
  return request.delete(`/admin/study-records/${id}`)
}

